{template header}

<div class="container">


<ol class="breadcrumb">
  <li><a href="{SITE_URL}">首页</a></li>
  <li><a href="{tsUrl('photo')}">相册</a></li>
  <li class="active">{$strAlbum['albumname']}</li>
</ol>


<div class="panel panel-default">
  <div class="panel-body">
  
  
<h1>{$title}</h1>



      <div class="c9 fs12" style="padding-bottom: 10px;">

          {$strAlbum[count_view]} 人浏览

          {$strAlbum[count_photo]}&nbsp;张照片
          &nbsp;{$strAlbum[addtime]}&nbsp;创建


      </div>

  

<div class="row">


{if $arrPhoto}

{loop $arrPhoto $key $item}
  <div class="col-sm-6 col-md-2">
    <div class="thumbnail">
      <a href="{tsUrl('photo','show',array('id'=>$item[photoid]))}"><img src="{php echo tsXimg($item[photourl],'photo',170,'170',$item[path],1)}" alt="{$strAlbum['albumname']}{$item['photoname']}" width="170" height="170"></a>
      <div class="caption">
        
        <p class="c9 fs12">{$item[count_view]}浏览</p>

      </div>
    </div>
  </div>
{/loop}

{else}
<br>
<div class="pl">这个相册现在还没有照片
{if $strAlbum[userid] == $TS_USER[userid]}, 你可以<a href="{SITE_URL}index.php?app=photo&ac=upload&albumid={$strAlbum[albumid]}">添加照片</a>{/if}
</div>
<br>
{/if}
</div>


<div class="page">{$pageUrl}</div>

<div>{$strAlbum[albumdesc]}</div>




      <div class="tar fs12 c9">
          {if $strAlbum[userid] == $TS_USER[userid] || $TS_USER[isadmin]==1}    &nbsp;&gt;&nbsp;<a href="{SITE_URL}index.php?app=photo&ac=album&ts=edit&albumid={$strAlbum[albumid]}">修改相册属性</a>
          &nbsp;&gt;&nbsp;<a href="{SITE_URL}index.php?app=photo&ac=upload&albumid={$strAlbum[albumid]}">添加照片</a>
          {if $strAlbum[count_photo]>'0'}&nbsp;&gt;&nbsp;<a href="{SITE_URL}index.php?app=photo&ac=album&ts=info&albumid={$strAlbum[albumid]}">批量修改</a>{/if}{/if}


          {if $strAlbum[userid] == $TS_USER[userid] || $TS_USER[isadmin]==1}
          &nbsp;&gt;&nbsp;<a  class="j a_confirm_link" rel="nofollow" href="{SITE_URL}index.php?app=photo&ac=album&ts=del&albumid={$strAlbum[albumid]}">删除相册</a>
          {/if}


          &nbsp;&gt;&nbsp;<a href="{tsUrl('photo','album',array(ts=>user,userid=>$strAlbum[userid]))}">返回{if $strAlbum[userid] == $TS_USER[userid]}我{else}{$strUser[username]}{/if}的相册首页</a>
      </div>


</div>
</div>
</div>

{template footer}